<template name="channel_members_list_item">
  <div class="dropdown">
    <a href="#" class="list-group-item list-group-item-action d-flex align-items-center border-0 py-2 px-3 channel-member-item" style="z-index: 0;" data-toggle="dropdown" data-offset="0,-{{#if isOwner}}99{{else}}50{{/if}}">
      <img class="rounded-circle mr-2" src="{{avatar}}" width="32">
      <b>{{display}}</b>
    </a>
    <div class="dropdown-menu dropdown-menu-right">
      <a class="dropdown-item" href="/u/{{username}}">查看主页</a>
      {{#if isOwner}}
        <div class="dropdown-divider"></div>
        <a class="dropdown-item remove-member" href="#">移除用户</a>
      {{/if}}
    </div>
  </div>
</template>